<form action='<?php echo $this->element->getAction(); ?>'  method= '<?php echo $this->element->getMethod(); ?>'>
    <?php echo $this->element->id; ?>
    <p>Tiêu đề:<br />
        <input name='title' type='text'  value='<?php echo $this->element->title; ?>'>
    
    </p>
    <p>Tiêu đề(EN):<br />
    <input name='title_en' type='text' value='<?php echo $this->element->title_en; ?>'>
    </p>
    <p>Thumbnail URL<br />
    <input name='thummbnail_url' class='browse' type='text' value='<?php echo $this->element->thumbnail_url; ?>
    </p>
    <p>Mô tả:<br />

    <?php echo $this->element->des; ?>

    </p>
    <p>Mô tả (EN):<br />

    <?php echo $this->element->des_en; ?>

    </p>
    <p>Nội dung:<br />

    <?php echo $this->element->content; ?>

    </p>
    <p>Nội dung (EN):<br />
        <?php echo $this->element->content_en; ?>
    </p>
    <div>
        <p>Categories</p>
        <?php echo $this->element->cats; ?><a href='#' id='add_new_cat'>Add</a>
    </div>
    <div id="addcats">
        <?php 
            if(isset($this->cat_items)){
                foreach($this->cat_items as $item){
                    echo "<div class='left' id='cat_item_".$item['id']."'><input type='hidden' name='cats_item[]' value='".$item['id']."'><a href ='#' class='remove_cat'>".$item['category_name']."</a></div>";
                }
            }
        ?>
    </div>
    <div class='clear'></div>
    <p>
        <?php echo $this->element->save; ?>
    </p>
</form>
